import { BaseEntity } from "@cool-midway/core";
import { Column, Entity } from "typeorm";

@Entity('demand_info', { comment: '需求信息' })
export class DemandInfoEntity extends BaseEntity {
    @Column({ comment: '需求标题', length: 255 })
    title: string;

    @Column({ comment: '需求类型', dict: ['协助需求', '用户需求'], default: 0 })
    type: number;

    @Column({ comment: '截止时间', nullable: true })
    deadline: Date;

    @Column({ comment: '备注', nullable: true })
    remark: string;

    @Column({ comment: '状态', dict: ['开放', '已分配', '已关闭'], default: 0 })
    status: number;

    @Column({ comment: '筛选条件', type: 'json', nullable: true })
    filter: any;

}